package com.iqiyi.pps.epg.api.server.impl;

import com.iqiyi.pps.epg.api.server.iservice.TicketApiService;
import com.iqiyi.pps.epg.api.server.proxy.TicketProxy;
import com.iqiyi.pps.epg.api.utils.CrossDataLocalPool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by karkarrotxu on 2017/9/5.
 */
@Service("ticketApiServiceImpl")
public class TicketApiServiceImpl extends ApiServiceImpl implements TicketApiService {
    @Autowired
    private TicketProxy ticketProxy;


    @Override
    public String getLogList( String entityId,  Integer pageNo, Integer pageSize) {
        CrossDataLocalPool.set(getCrossData());
        return ticketProxy.getLogList(entityId, pageNo, pageSize);
    }

    @Override
    public String getLogListByFilter( String paramsObj, Integer pageNo,  Integer pageSize) {
        CrossDataLocalPool.set(getCrossData());
        return ticketProxy.getLogListByFilter(paramsObj, pageNo, pageSize);
    }

    @Override
    public String addTicketData(String dataString) {
        CrossDataLocalPool.set(getCrossData());
        return ticketProxy.addTicketData(dataString);
    }
    @Override
    public String cancelTicketData(String dataString) {
        CrossDataLocalPool.set(getCrossData());
        return ticketProxy.cancelTicketData(dataString);
    }

    @Override
    public String editTicketData( String dataString) {
        CrossDataLocalPool.set(getCrossData());
        return ticketProxy.editTicketData(dataString);
    }

    @Override
    public String getTicketDataList( String paramsObj,  Integer pageNo, Integer pageSize, String orderObj) {
        CrossDataLocalPool.set(getCrossData());
        return ticketProxy.getTicketDataList(paramsObj,pageNo,pageSize,orderObj);
    }

    @Override
    public String assignTickData( String id, String executor) {
        CrossDataLocalPool.set(getCrossData());
        return ticketProxy.assignTickData(id,executor);
    }

    @Override
    public String getCheckList( String id) {
        CrossDataLocalPool.set(getCrossData());
        return ticketProxy.getCheckList(id);
    }

    @Override
    public String submitLiveCheck(String dataString){
        CrossDataLocalPool.set(getCrossData());
        return ticketProxy.submitLiveCheck(dataString);
    }

    @Override
    public String queryConfigs( String params) {
        CrossDataLocalPool.set(getCrossData());
        return ticketProxy.queryConfigs(params);
    }


}
